﻿using System;
using System.Runtime.Serialization;
using EDTS.Model.Weixin;
namespace EDTS.Model.Orgnizations
{
    [DataContract]
    public class UnitModel:MBase
    {
        [Model]
        [DataMember]
        public string UnitName { get; set; }
        [Model]
        [DataMember]
        public string Descript { get; set; }
        [Model]
        [DataMember]
        public int Sequence { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public Nullable<int> WeixinDepartmentID { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public Nullable<int> WxAppID { get; set; }

        #region Help
        public WxAppModel WxApp { get; set; }
        #endregion
    }

    [DataContract]
    public class UnitCollection : ModelCollectionBase<UnitModel> { }

    public class UnitQuery : QueryBase { 
        
    }
}
